4D Chart v13

CT GET TEXT ATTRIBUTES

Home

 
4D Chart v13
CT GET TEXT ATTRIBUTES

CT GET TEXT ATTRIBUTES 


 

CT GET TEXT ATTRIBUTES ( area ; scope ; fontID ; fontSize ; style ; color ; justification ) 
Parameter Type   Description
area  Longint in 4D Chart area
scope  Longint in Scope of the command -3 = Selected text -2 = Default -1 = All 0 = Selected object >0 = Object ID
fontID  Integer in Receives font ID
fontSize  Integer in Receives font size (in points)
style  Integer in Receives font style
color  Longint in Receives text color
justification  Integer in Receives justification of the text 0 = Left 1 = Center 2 = Right

The CT GET TEXT ATTRIBUTES command returns the text attributes of the text specified by area and scope in the fontID, size, style, color, and justification parameters.

fontID is the ID of the font in your system. You can get the ID number of a font using the CT Font number function.

fontSize is the size in points of the highlighted text or text object(s).

style is a composite number that results from the addition of several style numbers. The following table lists the style numbers:

ValueStyle
0Plain
1Bold
2Italic
4Underline
8Outlined
16Shadowed

color is a long integer that specifies the color of the object. You can specify a value for the color parameter by using the CT Index to color or the CT RGB to color functions.

justification is the justification of the text.

Note: This command should be used to get the attributes of text added to a document using the Text tool or the CT Draw text function. To get the attributes of chart text, such as axis labels, use the commands in the Chart theme.

Example  

This example returns the attributes of the selected text object in the $Font, $Size, $Style, $Color, and $Justify variables.

 CT GET TEXT ATTRIBUTES(Area;0;$Font;$Size;$Style;$Color;$Justify)

 
PROPERTIES 

Product: 4D Chart
Theme: CT Objects
Number: 14568

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Chart 1

 
SEE ALSO 

CT GET CHART TEXT ATTRIBUTES
CT SET TEXT ATTRIBUTES